package com.bmt.utils;

public class Math_Utils {
    public static Double round2(Double data) {
        return Math.round(data * 100) / 100d;
    }

    public static Float round2(Float data) {
        return Math.round(data * 100) / 100f;
    }

    public static Float roundDown05(Float data) {
        return (((int) (data * 10)) / 5) * 5 / 10f;
    }

    public static Double roundDown05(Double data) {
        return (((int) (data * 10)) / 5) * 5 / 10d;
    }
}
